package com.guomao.filedemos;

import java.io.File;
import java.io.IOException;

public class FileDemoD {


    public static void main(String[] args) throws IOException {


        //createNewFile 创建文件
//        File file = new File("D://xyz");
        File file = new File("D://abc");


        boolean flag = file.delete();
        if (flag) {
            System.out.println("file deleted");
        }
//        if (file.exists()) {
//            System.out.println("file exists");
//        } else {
//            System.out.println("file does not exist");
////            boolean flag = file.mkdir();
//            boolean flag = file.mkdirs();
//            if (flag) {
//                System.out.println("mkdir success");
//            }
//        }


    }
}
